package com.example.demo.controller;


import com.example.demo.entity.TblUser;
import com.example.demo.service.ITblUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author lyk
 * @since 2024-03-30
 */
@RestController
@RequestMapping("/tbl-user")
public class TblUserController {

    @Autowired
    private ITblUserService tblUserService;

    @PostMapping("/list")
    public List<TblUser> test(){
        return tblUserService.list();
    }
}
